package com.fang.security.service.security.impl;

import com.fang.security.entity.bo.security.UserRole;
import com.fang.security.mapper.AuthorityMapper;
import com.fang.security.service.security.AuthorityService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description
 * @Author Bernie
 * @Date 2024/5/7 17:35
 **/
@Service
public class AuthorityServiceImpl implements AuthorityService {

    @Resource
    private AuthorityMapper authorityMapper;

    @Override
    public List<UserRole> selectUserRoleByUserID(String userId) {
        return authorityMapper.selectUserRoleByUserID(userId);
    }

}
